Skip to content

python310Packages.pygobject: don't propagate cairo dev dependencies#252613

Merged
mweinelt merged 1 commit intoNixOS:stagingfrom
SuperSandro2000:pygobject
Feb 17, 2024
Merged

python310Packages.pygobject: don't propagate cairo dev dependencies#252613
mweinelt merged 1 commit intoNixOS:stagingfrom
SuperSandro2000:pygobject

Conversation

@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Aug 31, 2023

After this change applications like emote no longer depend on -dev outputs.

Tested by using nix-tree and comparing the runtime dependencies.

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Aug 31, 2023
@SuperSandro2000 SuperSandro2000 changed the base branch from master to staging August 31, 2023 18:03
@ofborg ofborg bot requested a review from jtojnar August 31, 2023 18:23
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Aug 31, 2023
@Artturin
Copy link
Member

Artturin commented Aug 31, 2023

This

diff --git a/pkgs/applications/version-management/meld/default.nix b/pkgs/applications/version-management/meld/default.nix
index 224efe8c1ac2..5c7ca1336baf 100644
--- a/pkgs/applications/version-management/meld/default.nix
+++ b/pkgs/applications/version-management/meld/default.nix
@@ -48,8 +48,8 @@ python3.pkgs.buildPythonApplication rec {
   ];

   propagatedBuildInputs = with python3.pkgs; [
-    pygobject3
-    pycairo
+    pygobject3.out
+    pycairo.out
   ];

   postPatch = ''

would be better

It was definitely a big mistake to use propagatedBuildInputs for python deps because it chooses the dev output #102613

@SuperSandro2000
Copy link
Member Author

How do we want to solve this?

After this change applications like emote no longer depend on -dev
outputs
@ofborg ofborg bot requested a review from jtojnar January 28, 2024 19:03
@mweinelt mweinelt merged commit dc57b5f into NixOS:staging Feb 17, 2024
@SuperSandro2000 SuperSandro2000 deleted the pygobject branch February 18, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants